package dao.impl;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.BeforeClass;
import org.junit.Test;

import dao.TableDao;
import entiey.Table;

public class TableDaoImplTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void test() {
		TableDao dao=new TableDaoImpl();
//		System.out.println(dao.findAll());
//		System.out.println(dao.delete(1));
		
		Table table=new Table();
		
		table.setDeskNo(131);
		table.setIcon("/table_image/1599005261695zhuo.jpg");
		table.setNode("测试");
		System.out.println(dao.add(table));
//		System.out.println(dao.update(table));
	}

}
